package com.gzyj.pojo.web.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author ZhiPeng.Lin
 * @Description
 * @Date 2024-10-09
 */
@Data
@TableName(value = "blade_user")
public class BladeUser implements Serializable {

    private static final long serialVersionUID = 7616596627726129434L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @TableField(value = "tenant_code")
    private String tenantCode;

    /**
     * 登录名称.
     */
    @ApiModelProperty("登录名称")
    @TableField(value = "account")
    private String account;

    /**
     * 登录密码.
     */
    @ApiModelProperty("登录密码")
    @TableField(value = "password")
    private String password;

    /**
     * 用户名.
     */
    @ApiModelProperty("用户名")
    @TableField(value = "name")
    private String name;

    /**
     * 真实用户名.
     */
    @ApiModelProperty("真实用户名")
    @TableField(value = "real_name")
    private String realName;

    @TableField(value = "email")
    private String email;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "birthday")
    private String birthday;

    @TableField(value = "sex")
    private Integer sex;

    /**
     * 角色id.
     */
    @ApiModelProperty("角色id")
    @TableField(value = "role_id")
    private String roleId;

    /**
     * 部门id.
     */
    @ApiModelProperty("部门id")
    @TableField(value = "dept_id")
    private String deptId;

    @TableField(value = "create_user")
    private Integer createUser;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_user")
    private Integer updateUser;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(value = "post_id")
    private Integer postId;

    @TableField(value = "openid")
    private String openid;

    /**
     * 特殊账号标志 1 是 0 否.
     */
    @ApiModelProperty("特殊账号标志 1 是 0 否")
    @TableField(value = "specials")
    private Integer specials;

    /**
     * 账号是否被锁定 1 是 0 否.
     */
    @ApiModelProperty("账号是否被锁定 1 是 0 否")
    @TableField(value = "is_locked")
    private Integer isLocked;

    /**
     * 登录错误计数.
     */
    @ApiModelProperty("登录错误计数")
    @TableField(value = "loginErrorcount")
    private Integer loginErrorcount;

    /**
     * 最后一次登录错误时间.
     */
    @ApiModelProperty("最后一次登录错误时间")
    @TableField(value = "lastLoginErrorTime")
    private Date lastLoginErrorTime;

    @TableField(exist = false)
    private Boolean isAdmin;

}
